using System;
using System.Collections.Generic;
using System.Text;
using System.IO;

namespace Scenario_Editor.WR2TerrainLoader
{
    class VertexBlock
    {
        public WR2Vertex[] vertices;

        internal VertexBlock(BinaryReader br, int numberOfVertices)
        {
            vertices = new WR2Vertex[numberOfVertices];
            for (int i = 0; i < vertices.Length; i++)
            {
                vertices[i] = new WR2Vertex(br);
            }
        }

        internal void Save(BinaryWriter bw)
        {
            for (int i = 0; i < this.vertices.Length; i++)
            {
                this.vertices[i].Save(bw);
            }
        }
    }
}
